# Base of your container
FROM microsoft/dotnet:latest

RUN apt-get update
RUN apt-get install -y curl

COPY . /app

WORKDIR /app

RUN ["dotnet", "restore"]

WORKDIR /app/application/web/src

RUN ["dotnet", "build", "--configuration=Release"]

# Open this port in the container
EXPOSE 5000

# Start application
ENTRYPOINT ["dotnet", "run", "--configuration=Release"]